<?php
/**
 * Created by PhpStorm.
 * User: 王峥宇
 * Date: 2019-04-24
 * Time: 17:00
 */

namespace app\admin\controller;

use app\admin\model\Yuyue as YuyueModel;
use app\admin\model\Zpaytype;
use think\Db;

class Yuyue extends Base
{
    //会员接单等待
    public function index()
    {
        $yuyue = YuyueModel::getYuyueIndex();
        $this->assign('yuyue',$yuyue);
        $page = $yuyue->render();
        $this->assign('page', $page);
        return $this->fetch();
    }
    //会员接单信息修改
    public function update(){
        if(request()->isAjax()) {
            $update = YuyueModel::getUpdateYuyue();
            return $update;
        }
        $update = YuyueModel::getUpdateYuyue();
        $this->assign('update',$update);
        $ztype = Zpaytype::ztype();
        $this->assign('ztype',$ztype);
        return $this->fetch();
    }
}